package myoa

import myoa.domain.Trace
import myoa.tool.FileTool
import org.codehaus.groovy.grails.web.util.WebUtils

import javax.servlet.http.HttpServletRequest

class FileStore extends Trace {
    String name

    static constraints = {

    }

    String getPath() {
        FileTool.basePath + name
    }

    File getFile() {
        new File(this.path)
    }

    String getUri() {
        FileTool.baseUri + name
    }
}
